package io.demo2_File流;

import java.io.FileOutputStream;

public class Test2 {
    public static void main(String[] args)throws Exception {
        FileOutputStream fos=new FileOutputStream("d:/1.txt",true);
        fos.write(97);
        byte[]arr="abcdefg".getBytes();
        fos.write(arr,0,2);
        fos.close();
    }
}
